package com.example.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标识对Controller的某个方法进行权限校验
 * <p>示例：</p>
 * <p>  @Authorization
 * <p>  @RequestMapping(value = "", method = RequestMethod.GET)
 * <p>  public Result<UserDTO> getPersonInfo(@CurrentUser User user) {
 * <p>      //....
 * <p>  }
 */
@Inherited
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Authorization {

}
